{include file=$header_start}
{strip}
<!-- This file is required on listing pages of the site (Not on add,edit and detail pages) -->
<script type="text/javascript" src="{$siteroot}/includes/js/admin/checkall.js" /></script>
{/strip}
{include file=$header_end}
{literal}
<script type="text/javascript">
$(function(){
$(".someClass").tipTip();
});

$(function(){
$(".someClass").tipTip({maxWidth: "auto", edgeOffset: 10});
});
</script>
{/literal}
 <div class="contain">
 
      {include file=$left_menu}
      
      <div class="right_contain">
        
         <div class="heading_box"> Manage NAB Settings <a href="javascript:;" class="someClass" title="{$moduelArray.module_help_text}" style="float:right;"><img src="{$siteroot}/templates/admin/img/topic_icon6.png" /></a> </div>
         <div class="whitebox">
         <!--Message Div Start-->
         {if $msg}
         <div class="masg_div">
         	{$msg}
         </div>
         {/if}
         <!--Message Div End-->
         
         <div>
          <!--Form Contain start-->
           
           <div class="table_viewbox">
            <!--<h2>Table Design</h2>-->
<!--<form name="searchFrm" id="searchFrm" method="post" action="{$siteroot}/admin/home.php?q=places">
            	<table width="100%" border="0" cellpadding="3" cellspacing="5">
                	<tr>
                    	<td align="left"></td>
                        <td align="right">                         
                        &nbsp;<input type="text" name="search" id="search" class="input41" value="{if $search neq ''}{$search}{else}By User First Or Last Name Or Email{/if}" onfocus="this.value=''" onblur="if(this.value=='')this.value='By User First Or Last Name Or Email'" />&nbsp;<input type="submit" name="add" id="add" value="Search" class="admin_btn" />&nbsp;<input type="button" name="add" id="add" value="Clear" class="admin_btn" onclick="javascript: window.location='{$siteroot}/admin/home.php?q=places';" /></td>
                    </tr>
                    
                </table>
            </form>    -->        
            
            <form name="frm" id="frm" action="" method="post" >
            <input type="hidden" name="hidden_pageno" id="hidden_pageno" value="{$page}" />
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_viewbox">
              <tr>
                <th width="3%" align="center">#</th>
                <th width="10%">Enable</th>
                <th >Merchant ID</th>
                <th width="20%">Payment Mode</th>
                <th >Tax</th>
                <th >Invoice Format</th>
                <th width="10%">Action</th>
              </tr>
              {if $NabArray}
              {section name=i loop=$NabArray}
              <tr class="inactiverow" id="tr_{$NabArray[i].id}">
                <td align="center">1</td>
				<td>{if $NabArray[i].published eq 1} Yes {else} No {/if}</td>
                <td>{$NabArray[i].merchant_id}</td>
                <td>{$NabArray[i].mode}</td>
                <td>{$NabArray[i].tax} %</td>
                <td>{$NabArray[i].invoice_format}</td>
                <td>
                    <span><a href="{$siteroot}/admin/home.php?q=nabdetails&id={$NabArray[i].id|base64_encode}"><img src="{$siteroot}/templates/admin/img/icon-search.png" title="NAB  Details" /></a></span>
                    <span><a href="{$siteroot}/admin/home.php?q=editnab&id={$NabArray[i].id|base64_encode}"><img src="{$siteroot}/templates/admin/img/icon_edit.png" title="Edit NAB Details" /></a></span>                  
                </td>
              </tr>
              <!-- {$newid++} -->
              {/section}
               {else}
              <tr>
               <td colspan="4" align="center" class="error">Record Not Found</td>
              </tr>
              {/if}
            </table>
</form>
            
         </div>
            <!--Form Contain end--> 
          
         </div>
         
         
         </div>
        </div>
      
      
      <!--right_contain end-->
      <div class="clear"></div>
    </div>
    
{include file=$footer}